<?php 
class CForum extends CBaseForum {
		
	public function __construct() {
		parent::__construct();
		return true;
	}	
	
	public function updateForumsActionById( $strAction, $arrintForumsId, $objDatabase ) {
		
		$strSql = 'UPDATE 
						`forums`
						
					SET
						`status` = ' . $strAction . '
					WHERE
						`id` IN(' . implode( ',', $arrintForumsId ) . ')';
		
		return parent::updateRecord( $strSql, $objDatabase );		
	}
	
	public function deleteForumsById( $arrintForumsId, $objDatabase ) {
	
		$strSql = ' DELETE FROM `forums` WHERE `id` IN(' . implode( ',', $arrintForumsId ) . ')';
		return parent::deleteRecord( $strSql, $objDatabase );	
	}
}

?>